<!doctype html>
<html lang="zh-Hans">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" >
    <link rel="stylesheet" href="assets/css/fontawesome.min.css" >
    <link rel="stylesheet" href="assets/plugins/select2/css/select2.min.css" >
    <link rel="stylesheet" href="assets/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css" >
    <link rel="stylesheet" href="assets/plugins/overlayscrollbars/css/OverlayScrollbars.min.css">
    <link rel="stylesheet" href="assets/css/backend.css" >
    <title>Fresns 管理中心</title>
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fresns-navbar">
      <a class="navbar-brand" href="#"><img src="assets/images/logo.png" height="30" alt="Fresns"></a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item"><a class="nav-link" href="index.html">仪表盘</a></li>
          <li class="nav-item"><a class="nav-link" href="system-language.html">系统</a></li>
          <li class="nav-item active"><a class="nav-link" href="operating-user.html">运营</a></li>
          <li class="nav-item"><a class="nav-link" href="themes.html">主题</a></li>
          <li class="nav-item"><a class="nav-link" href="plugins.html">插件</a></li>
          <li class="nav-item"><a class="nav-link" href="clients.html">客户端</a></li>
          <li class="nav-item"><a class="nav-link" href="store.html">应用市场</a></li>
        </ul>
        <span class="navbar-text">admin <a href="#">[退出]</a> <a href="https://fresns.cn" target="_blank">站点首页</a></span>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-xl-2 fresns-sidebar">
          <h3 class="d-none d-sm-block">运营</h3>
          <button class="btn btn-primary btn-block d-block d-sm-none" type="button" data-toggle="collapse" data-target="#sidebarNav" aria-controls="sidebarNav" aria-expanded="true">
            <i class="fas fa-list-ul"></i> 运营
          </button>
          <div class="collapse show" id="sidebarNav">
            <ul class="nav flex-column">
              <li class="nav-item"><a class="nav-link" href="operating-user.html"><i class="fas fa-users"></i> 用户配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-rename.html"><i class="far fa-keyboard"></i> 命名配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-interactive.html"><i class="far fa-list-alt"></i> 互动配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-emoji.html"><i class="far fa-smile-beam"></i> 表情配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-publish-post.html"><i class="far fa-edit"></i> 发表配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-filter.html"><i class="fas fa-spell-check"></i> 过滤配置</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-role.html"><i class="far fas fa-user-tag"></i> 用户角色</a></li>
              <li class="nav-item"><a class="nav-link" href="operating-group.html"><i class="fas fa-columns"></i> 内容小组</a></li>
              <li class="nav-item"><a class="nav-link active" href="operating-expand.html"><i class="fab fa-codepen"></i> 扩展管理</a></li>
            </ul>
            <div class="fresns-copyright">
              <p>Powered by Fresns</p>
            </div>
          </div>
        </div>

        <div class="col-sm-9 col-xl-10 fresns-content">
          <h3>扩展管理</h3>
          <!-- Expand Start -->
          <form>
            <ul class="nav nav-tabs" id="myTab" role="tablist">
              <li class="nav-item"><a class="nav-link active" id="editor-tab" data-toggle="tab" href="#editor" role="tab" aria-controls="editor" aria-selected="true">编辑器扩展</a></li>
              <li class="nav-item"><a class="nav-link" id="search-tab" data-toggle="tab" href="#search" role="tab" aria-controls="search" aria-selected="false">内容类型扩展</a></li>
              <li class="nav-item"><a class="nav-link" id="manage-tab" data-toggle="tab" href="#manage" role="tab" aria-controls="manage" aria-selected="false">管理扩展</a></li>
              <li class="nav-item"><a class="nav-link" id="group-tab" data-toggle="tab" href="#group" role="tab" aria-controls="group" aria-selected="false">小组扩展</a></li>
              <li class="nav-item"><a class="nav-link" id="userfeature-tab" data-toggle="tab" href="#userfeature" role="tab" aria-controls="contact" aria-selected="false">用户功能扩展</a></li>
              <li class="nav-item"><a class="nav-link" id="userdata-tab" data-toggle="tab" href="#userdata" role="tab" aria-controls="userdata" aria-selected="false">用户资料扩展</a></li>
            </ul>
            <div class="tab-content" id="myTabContent">
              <div class="tab-pane fade show active" id="editor" role="tabpanel" aria-labelledby="editor-tab">
                <div class="alert alert-secondary mt-3" role="alert">
                  该扩展配置将呈现在发布流程的「编辑器」中，例如「投票」扩展可以让「编辑器」支持为帖子附带投票功能。
                </div>
                <div class="table-responsive">
                  <table class="table table-hover">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col" style="width:10%;">显示顺序</th>
                        <th scope="col">关联插件</th>
                        <th scope="col">显示名称</th>
                        <th scope="col">应用场景</th>
                        <th scope="col" data-toggle="tooltip" data-placement="top" title="以“投票”插件举例，数量为 2 则代表单个帖子可以附带 2 个投票">应用数量 <i class="fas fa-question-circle"></i></th>
                        <th scope="col"><span data-toggle="tooltip" data-placement="top" title="留空代表所有用户角色均有权">有权使用的用户角色 <i class="fas fa-question-circle"></i></span></th>
                        <th scope="col">自定义参数</th>
                        <th scope="col">启用状态</th>
                        <th scope="col">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">豆瓣电影</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">插个电影</td>
                        <td class="align-middle">帖子,评论</td>
                        <td class="align-middle">3</td>
                        <td class="align-middle">管理员,普通会员</td>
                        <td class="align-middle"></td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="is_enable_1" checked>
                            <label class="custom-control-label" for="is_enable_1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="2"></td>
                        <td class="align-middle">悬赏</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">有奖活动</td>
                        <td class="align-middle">帖子</td>
                        <td class="align-middle">1</td>
                        <td class="align-middle">管理员</td>
                        <td class="align-middle">admin</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="is_enable_2">
                            <label class="custom-control-label" for="is_enable_2">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="8" class="align-middle"><button type="button" class="btn btn-sm btn-link text-secondary"><i class="fas fa-plus-circle"></i> 新增</button></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <!--Divider-->
              <div class="tab-pane fade" id="search" role="tabpanel" aria-labelledby="search-tab">
                <div class="alert alert-secondary mt-3" role="alert">
                  该扩展配置将呈现在「帖子」列表页面中，包括全局、关注、附近、小组、搜索等结果的帖子列表，用于输出指定「类型」的帖子。
                </div>
                <div class="table-responsive">
                  <table class="table table-hover">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col" style="width:10%;">显示顺序</th>
                        <th scope="col">关联插件</th>
                        <th scope="col">显示名称</th>
                        <th scope="col">启用状态</th>
                        <th scope="col">数据来源</th>
                        <th scope="col">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">全部</td>
                        <td class="align-middle">全部</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-1" checked disabled>
                            <label class="custom-control-label" for="search-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">文本</td>
                        <td class="align-middle">文本</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-1" checked disabled>
                            <label class="custom-control-label" for="search-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="2"></td>
                        <td class="align-middle">附件：图片</td>
                        <td class="align-middle">图片</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-2" checked>
                            <label class="custom-control-label" for="search-2">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="3"></td>
                        <td class="align-middle">附件：视频</td>
                        <td class="align-middle">视频</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-3">
                            <label class="custom-control-label" for="search-3">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="4"></td>
                        <td class="align-middle">附件：音频</td>
                        <td class="align-middle">语音</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-4">
                            <label class="custom-control-label" for="search-4">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="5"></td>
                        <td class="align-middle">附件：文档</td>
                        <td class="align-middle">资源</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="expand-1">
                            <label class="custom-control-label" for="expand-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="6"></td>
                        <td class="align-middle">仿拼多多商城</td>
                        <td class="align-middle">商品</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-1" checked>
                            <label class="custom-control-label" for="search-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="7"></td>
                        <td class="align-middle">投票插件</td>
                        <td class="align-middle">投票</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-1" checked>
                            <label class="custom-control-label" for="search-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="8"></td>
                        <td class="align-middle">知乎问答索引插件</td>
                        <td class="align-middle">问答</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-1" checked>
                            <label class="custom-control-label" for="search-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="9"></td>
                        <td class="align-middle">你画我猜</td>
                        <td class="align-middle">游戏</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="search-1" checked>
                            <label class="custom-control-label" for="search-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-outline-success btn-sm" data-toggle="modal" data-target="#expand-api-edit">关联插件</button>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="7" class="align-middle"><button type="button" class="btn btn-sm btn-link text-secondary"><i class="fas fa-plus-circle"></i> 新增</button></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <!--Divider-->
              <div class="tab-pane fade" id="manage" role="tabpanel" aria-labelledby="manage-tab">
                <div class="alert alert-secondary mt-3" role="alert">
                  该扩展配置将呈现在帖子、评论、用户主页的「更多」功能列表中，例如「投诉」扩展可以让用户在「更多」功能里对相应目标进行投诉。
                </div>
                <div class="table-responsive">
                  <table class="table table-hover">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col" style="width:10%;">显示顺序</th>
                        <th scope="col">关联插件</th>
                        <th scope="col">显示名称</th>
                        <th scope="col">应用场景</th>
                        <th scope="col"><span data-toggle="tooltip" data-placement="top" title="留空代表所有用户角色均有权">有权使用的用户角色 <i class="fas fa-question-circle"></i></span></th>
                        <th scope="col"><span data-toggle="tooltip" data-placement="top" title="启用后，仅小组管理员会展示该插件">小组管理员专用 <i class="fas fa-question-circle"></i></span></th>
                        <th scope="col">自定义参数</th>
                        <th scope="col">启用状态</th>
                        <th scope="col">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">投诉插件</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">投诉</td>
                        <td class="align-middle">帖子,评论,用户</td>
                        <td class="align-middle"></td>
                        <td class="align-middle"><i class="fas fa-check text-success"></i></td>
                        <td class="align-middle"></td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="is_enable_3">
                            <label class="custom-control-label" for="is_enable_3">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="2"></td>
                        <td class="align-middle">表单插件</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">纠错有奖</td>
                        <td class="align-middle">帖子</td>
                        <td class="align-middle"></td>
                        <td class="align-middle"><i class="fas fa-minus text-secondary"></i></td>
                        <td class="align-middle">edit</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="is_enable_3" checked>
                            <label class="custom-control-label" for="is_enable_3">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="8" class="align-middle"><button type="button" class="btn btn-sm btn-link text-secondary"><i class="fas fa-plus-circle"></i> 新增</button></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <!--Divider-->
              <div class="tab-pane fade" id="group" role="tabpanel" aria-labelledby="group-tab">
                <div class="alert alert-secondary mt-3" role="alert">
                  该扩展配置将呈现在「小组」主页中，例如「纯链接扩展插件」可以在「小组」主页显示一个超链接。
                </div>
                <div class="input-group mb-3">
                  <div class="input-group-prepend">
                    <label class="input-group-text text-primary">小组筛选</label>
                  </div>
                  <select class="custom-select" id="inputGroupSelect01">
                    <option selected>全部</option>
                    <option value="1">晒单</option>
                    <option value="2">优惠活动</option>
                    <option value="3">营养/保健/养生</option>
                    <option value="4">孕产/育儿/亲子</option>
                    <option value="5">闲聊杂谈</option>
                  </select>
                </div>
                <div class="table-responsive">
                  <table class="table table-hover">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col" style="width:10%;">显示顺序</th>
                        <th scope="col">所属小组</th>
                        <th scope="col">关联插件</th>
                        <th scope="col">显示名称</th>
                        <th scope="col"><span data-toggle="tooltip" data-placement="top" title="留空代表所有用户角色均有权">有权使用的用户角色 <i class="fas fa-question-circle"></i></span></th>
                        <th scope="col">自定义参数</th>
                        <th scope="col">启用状态</th>
                        <th scope="col">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">闲聊杂谈</td>
                        <td class="align-middle">纯链接扩展插件</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">学习指南</td>
                        <td class="align-middle"></td>
                        <td class="align-middle">https://tangjie.me/zhinan</td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="is_enable_4">
                            <label class="custom-control-label" for="is_enable_4">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#group-expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">晒单</td>
                        <td class="align-middle">每日榜单</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">榜单</td>
                        <td class="align-middle"></td>
                        <td class="align-middle"></td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="is_enable_5">
                            <label class="custom-control-label" for="is_enable_5">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#group-expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="7" class="align-middle"><button type="button" class="btn btn-sm btn-link text-secondary"><i class="fas fa-plus-circle"></i> 新增</button></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <!--Divider-->
              <div class="tab-pane fade" id="userfeature" role="tabpanel" aria-labelledby="userfeature-tab">
                <div class="alert alert-secondary mt-3" role="alert">
                  该扩展配置将呈现在「用户中心」的“我的”页面中，例如「钱包」扩展可以让用户中心多一个钱包入口，点击后进入对应的插件功能。
                </div>
                <div class="table-responsive">
                  <table class="table table-hover">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col" style="width:10%;">显示顺序</th>
                        <th scope="col">关联插件</th>
                        <th scope="col">显示名称</th>
                        <th scope="col"><span data-toggle="tooltip" data-placement="top" title="留空代表所有用户角色均有权">有权使用的用户角色 <i class="fas fa-question-circle"></i></span></th>
                        <th scope="col">自定义参数</th>
                        <th scope="col">启用状态</th>
                        <th scope="col">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">积分插件</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">金币钱包</td>
                        <td class="align-middle"></td>
                        <td class="align-middle"></td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="expand-1">
                            <label class="custom-control-label" for="expand-1">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="2"></td>
                        <td class="align-middle">邀请注册</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">邀请嘉宾</td>
                        <td class="align-middle">管理员</td>
                        <td class="align-middle"></td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="expand-2">
                            <label class="custom-control-label" for="expand-2">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="7" class="align-middle"><button type="button" class="btn btn-sm btn-link text-secondary"><i class="fas fa-plus-circle"></i> 新增</button></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <!--Divider-->
              <div class="tab-pane fade" id="userdata" role="tabpanel" aria-labelledby="userdata-tab">
                <div class="alert alert-secondary mt-3" role="alert">
                  该扩展配置将呈现在「用户资料」管理功能列表中，例如「修改用户名插件」可以让修改资料功能支持修改用户名。
                </div>
                <div class="table-responsive">
                  <table class="table table-hover">
                    <thead class="thead-light">
                      <tr>
                        <th scope="col" style="width:10%;">显示顺序</th>
                        <th scope="col">关联插件</th>
                        <th scope="col">显示名称</th>
                        <th scope="col"><span data-toggle="tooltip" data-placement="top" title="留空代表所有用户角色均有权">有权使用的用户角色 <i class="fas fa-question-circle"></i></span></th>
                        <th scope="col">自定义参数</th>
                        <th scope="col">启用状态</th>
                        <th scope="col">操作</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="1"></td>
                        <td class="align-middle">修改用户名插件</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">修改用户名</td>
                        <td class="align-middle"></td>
                        <td class="align-middle"></td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="expand-3">
                            <label class="custom-control-label" for="expand-3">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td class="align-middle"><input type="number" class="form-control" value="2"></td>
                        <td class="align-middle">头像挂件</td>
                        <td class="align-middle"><img src="assets/images/placeholder_icon.png" class="mr-1" width="24" height="24">头像挂件</td>
                        <td class="align-middle">管理员</td>
                        <td class="align-middle"></td>
                        <td class="align-middle">
                          <div class="custom-control custom-switch">
                            <input type="checkbox" class="custom-control-input" id="expand-4">
                            <label class="custom-control-label" for="expand-4">是否启用</label>
                          </div>
                        </td>
                        <td class="align-middle">
                          <button type="button" class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#expand-edit">设置</button>
                          <button type="button" class="btn btn-link btn-sm text-danger">删除</button>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="7" class="align-middle"><button type="button" class="btn btn-sm btn-link text-secondary"><i class="fas fa-plus-circle"></i> 新增</button></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
            <!-- Form Submit -->
            <button type="submit" class="btn btn-success ml-3">更新顺序</button>
          </form>
          <!-- Expand End -->
        </div>
      </div>
    </div>

    <!-- Modal -->
    <div class="modal fade" id="expand-edit" tabindex="-1" role="dialog" aria-labelledby="expand-edit" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">扩展管理</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <form>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">显示顺序</label>
                <div class="col-sm-9">
                  <input type="number" class="form-control" value="1">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">关联插件</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option value="1" selected>插件1</option>
                    <option value="2">插件2</option>
                    <option value="3">插件3</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">显示图标</label>
                <div class="col-sm-9">
                  <input type="url" class="form-control" value="https://cdn.fresns.cn/default/icon.png">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">显示名称</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" value="有奖活动">
                  <small class="form-text text-muted">支持多语言</small>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">应用数量</label>
                <div class="col-sm-9">
                  <input type="number" class="form-control" value="1">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">应用场景</label>
                <div class="col-sm-9">
                  <select class="custom-select" multiple>
                    <option value="1" selected>帖子</option>
                    <option value="2" selected>评论</option>
                    <option value="3" selected>用户</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">自定义参数</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" value="abc">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">使用权限</label>
                <div class="col-sm-9">
                  <select class="custom-select" multiple>
                    <option value="1" selected>管理员</option>
                    <option value="2">禁言用户</option>
                    <option value="3">普通会员</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">启用状态</label>
                <div class="col-sm-9">
                  <div class="custom-control custom-switch">
                    <input type="checkbox" class="custom-control-input" id="is_enable" checked>
                    <label class="custom-control-label" for="is_enable">是否启用</label>
                  </div>
                </div>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-success">提交</button>
          </div>
        </div>
      </div>
    </div>

    <!-- Modal -->
    <div class="modal fade" id="group-expand-edit" tabindex="-1" role="dialog" aria-labelledby="group-expand-edit" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">扩展管理</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <form>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">所属小组</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option value="1" selected>晒单</option>
                    <option value="2">购物交流</option>
                    <option value="3">优惠活动</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">显示顺序</label>
                <div class="col-sm-9">
                  <input type="number" class="form-control" value="1">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">关联插件</label>
                <div class="col-sm-9">
                  <select class="custom-select">
                    <option value="1" selected>插件1</option>
                    <option value="2">插件2</option>
                    <option value="3">插件3</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">显示图标</label>
                <div class="col-sm-9">
                  <input type="url" class="form-control" value="https://cdn.fresns.cn/default/icon.png">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">显示名称</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" value="纯链接扩展插件">
                  <small class="form-text text-muted">支持多语言。</small>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">应用数量</label>
                <div class="col-sm-9">
                  <input type="number" class="form-control" value="1">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">应用场景</label>
                <div class="col-sm-9">
                  <select class="custom-select" multiple>
                    <option value="1" selected>帖子</option>
                    <option value="2" selected>评论</option>
                    <option value="3" selected>用户</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">自定义参数</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" value="abc">
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">使用权限</label>
                <div class="col-sm-9">
                  <select class="custom-select" multiple>
                    <option value="1" selected>管理员</option>
                    <option value="2">禁言用户</option>
                    <option value="3">普通会员</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label for="label" class="col-sm-3 col-form-label">启用状态</label>
                <div class="col-sm-9">
                  <div class="custom-control custom-switch">
                    <input type="checkbox" class="custom-control-input" id="is_enable" checked>
                    <label class="custom-control-label" for="is_enable">是否启用</label>
                  </div>
                </div>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-success">提交</button>
          </div>
        </div>
      </div>
    </div>


    <!-- Modal -->
    <div class="modal fade bd-example-modal-lg" id="expand-api-edit" tabindex="-1" role="dialog" aria-labelledby="expand-api-edit" aria-hidden="true">
      <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">数据来源</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <div class="alert alert-warning" style="margin-top: -10px;" role="alert">
              如果你希望有个性化的数据列表，可以安装相应的算法插件，由插件为该类型的以下接口提供数据。
            </div>
            <table class="table table-hover">
              <thead class="thead-light">
                <tr>
                  <th scope="col">接口名称</th>
                  <th scope="col">接口地址</th>
                  <th scope="col" style="width:20%;">数据来源</th>
                  <th scope="col">排序编号</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td class="align-middle">获取帖子[列表]</td>
                  <td class="align-middle">/api/fresns/post/lists</td>
                  <td class="align-middle">
                    <select class="custom-select" id="api_post_lists_plugin">
                      <option value="1">默认</option>
                      <option value="2">xx插件</option>
                      <option value="3">zz插件</option>
                    </select>
                  </td>
                  <td class="align-middle"><button type="button" class="btn btn-info btn-sm">配置</button></td>
                </tr>
                <tr>
                  <td class="align-middle">获取帖子关注的[列表]</td>
                  <td class="align-middle">/api/fresns/post/follows</td>
                  <td class="align-middle">
                    <select class="custom-select" id="api_post_follows_plugin">
                      <option value="1">默认</option>
                      <option value="2">xx插件</option>
                      <option value="3">zz插件</option>
                    </select>
                  </td>
                  <td class="align-middle"><button type="button" class="btn btn-info btn-sm">配置</button></td>
                </tr>
                <tr>
                  <td class="align-middle">获取帖子附近的[列表]</td>
                  <td class="align-middle">/api/fresns/post/nearbys</td>
                  <td class="align-middle">
                    <select class="custom-select" id="api_post_nearbys_plugin">
                      <option value="1">默认</option>
                      <option value="2">xx插件</option>
                      <option value="3">zz插件</option>
                    </select>
                  </td>
                  <td class="align-middle"><button type="button" class="btn btn-info btn-sm">配置</button></td>
                </tr>
              </tbody>
            </table>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-success">提交</button>
          </div>
        </div>
      </div>
    </div>

    <!-- JavaScript -->
    <script src="assets/js/jquery-3.5.1.slim.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/plugins/select2/js/select2.full.min.js"></script>
    <script src="assets/plugins/overlayscrollbars/js/jquery.overlayScrollbars.min.js"></script>
    <script src="assets/js/backend.js"></script>
  </body>
</html>